package chapter0.ioc;
public class AccountAction {

	private JDBCAccountDao dao;
	public void setDao(JDBCAccountDao dao) {
		this.dao = dao;
	}
	public void save(){
		Account account = new Account();  
		account.setId("1234567890"); 
	    account.setName("这是张三");
//		JDBCAccountDao dao = new JDBCAccountDao();
		System.out.println("Here is!");
		dao.save(account);
	}
}
